import { createApp } from "vue";
import App from "./App.vue";
import { createPinia } from "pinia";
import piniaPersist from "pinia-plugin-persist";
import axios from "./utils/axios";
import router from "./router/index";

const app = createApp(App);
const pinia = createPinia();

app.provide("$axios", axios);

pinia.use(piniaPersist); //数据持久化
app.use(pinia);
app.use(router);
app.mount("#app");
